package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 发票对象 t_invoices
 * 
 * @author liuyu
 * @date 2024-10-29
 */
public class Invoices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 关联销售订单表 */
    @Excel(name = "关联销售订单表")
    private String salesOrderId;

    /** 开票人 */
    @Excel(name = "开票人")
    private String invoiceByName;

    /** 收款人 */
    @Excel(name = "收款人")
    private String cashByName;

    /** 购方银行账号 */
    @Excel(name = "购方银行账号")
    private String customBankNo;

    /** 购方开户银行名称 */
    @Excel(name = "购方开户银行名称")
    private String customBankName;

    /** 客户名 */
    @Excel(name = "客户名")
    private String busOtherCpyName;

    /** 发票编号 */
    @Excel(name = "发票编号")
    private String invoiceNumber;

    /** 发票金额 */
    @Excel(name = "发票金额")
    private BigDecimal amount;

    /** 发票类型   1 普通发票  2专用发票 */
    @Excel(name = "发票类型   1 普通发票  2专用发票")
    private Long invoiceType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 状态 0无效 1有效 */
    @Excel(name = "状态 0无效 1有效")
    private Long status;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 附件(纸质发票) */
    @Excel(name = "附件(纸质发票)")
    private String annex;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSalesOrderId(String salesOrderId)
    {
        this.salesOrderId = salesOrderId;
    }

    public String getSalesOrderId()
    {
        return salesOrderId;
    }
    public void setInvoiceByName(String invoiceByName)
    {
        this.invoiceByName = invoiceByName;
    }

    public String getInvoiceByName()
    {
        return invoiceByName;
    }
    public void setCashByName(String cashByName)
    {
        this.cashByName = cashByName;
    }

    public String getCashByName()
    {
        return cashByName;
    }
    public void setCustomBankNo(String customBankNo)
    {
        this.customBankNo = customBankNo;
    }

    public String getCustomBankNo()
    {
        return customBankNo;
    }
    public void setCustomBankName(String customBankName)
    {
        this.customBankName = customBankName;
    }

    public String getCustomBankName()
    {
        return customBankName;
    }
    public void setBusOtherCpyName(String busOtherCpyName)
    {
        this.busOtherCpyName = busOtherCpyName;
    }

    public String getBusOtherCpyName()
    {
        return busOtherCpyName;
    }
    public void setInvoiceNumber(String invoiceNumber)
    {
        this.invoiceNumber = invoiceNumber;
    }

    public String getInvoiceNumber()
    {
        return invoiceNumber;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setInvoiceType(Long invoiceType)
    {
        this.invoiceType = invoiceType;
    }

    public Long getInvoiceType()
    {
        return invoiceType;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }
    public void setAnnex(String annex)
    {
        this.annex = annex;
    }

    public String getAnnex()
    {
        return annex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("salesOrderId", getSalesOrderId())
                .append("invoiceByName", getInvoiceByName())
                .append("cashByName", getCashByName())
                .append("customBankNo", getCustomBankNo())
                .append("customBankName", getCustomBankName())
                .append("busOtherCpyName", getBusOtherCpyName())
                .append("invoiceNumber", getInvoiceNumber())
                .append("amount", getAmount())
                .append("invoiceType", getInvoiceType())
                .append("createdTime", getCreatedTime())
                .append("createBy", getCreateBy())
                .append("status", getStatus())
                .append("updatedTime", getUpdatedTime())
                .append("annex", getAnnex())
                .toString();
    }
}
